package app.auto;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import app.auto.designer.R;


public class ViewActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_auto_ction);

        String value = getIntent().getStringExtra("value");
        value = value == null ? "" : value;
        String idname = getIntent().getStringExtra("idname");
        idname = idname == null ? "" : idname;
        String type = getIntent().getStringExtra("type");

        String wxh = getIntent().getStringExtra("W x H");

        ((TextView) findViewById(R.id.tvTitle)).setText(value + " " + idname.replace("id/", "") + "\n [" + type + "] [" + wxh + "]");

        findViewById(R.id.ivRight_text).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }


}

